package com.temp.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.temp.dao.TalarmDao;
import java.util.List;
import com.temp.vo.Talarm;

/**
 * 
 * <br>
 * <b>功能：</b>TalarmService<br>
 * <b>作者：</b>suxy<br>
 * <b>日期：</b> 2016 <br>
 * <b>版权所有：
 */
@Service
public class TalarmService {
	private final static Logger log= LoggerFactory.getLogger(TalarmService.class);
	
	@Autowired
    private TalarmDao dao;
		
	public TalarmDao getDao() {
		return dao;
	}

	public List<Talarm> query(Talarm t){
		return dao.query(t);
	}
	
	public Integer queryTalarmCount(Talarm t){
		return dao.queryTalarmCount(t);
	}
	
	public void update(Talarm t){
		dao.update(t);
	}
	
	public void insert(Talarm t){
		dao.insert(t);
	} 	
	
	public void delete(Object id){
		dao.delete(id);
	}
	
	public Talarm queryById(Talarm talarm){
		return dao.queryById(talarm);
	}
}
